﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    public partial class IoTbUploadBillMxxmShenYangG
    {
        public int SerialNo { get; set; }
        public long? RegNo { get; set; }
        /// <summary>
        /// 个人唯一识别码
        /// </summary>
        public string? PsnNo { get; set; }
        /// <summary>
        /// 单据号(预结算传空，结算时必传且不能为0)
        /// </summary>
        public string? MdtrtId { get; set; }
        /// <summary>
        /// 就诊类别(
        /// 11	门诊肢体残和门诊普通工伤
        /// 13	门诊职业病
        /// 14	门诊康复
        /// 21	住院肢体残和住院普通工伤
        /// 23	住院职业病
        /// 24	住院康复)
        /// </summary>
        public string? MedType { get; set; }
        /// <summary>
        /// 门诊/住院流水号 
        /// </summary>
        public string IptOtpNo { get; set; } = null!;
        /// <summary>
        /// 三大目录类别(1药品2诊疗项目3材料)
        /// </summary>
        public string ListType { get; set; } = null!;
        /// <summary>
        /// 处方号
        /// </summary>
        public string Rxno { get; set; } = null!;
        /// <summary>
        /// 处方流水号（单次就诊内唯一）
        /// </summary>
        public string FeedetlSn { get; set; } = null!;
        /// <summary>
        /// 处方日期（YYYYMMDDHH24MISS）
        /// </summary>
        public string FeeOcurTime { get; set; } = null!;
        /// <summary>
        /// 收费项目中心编码
        /// </summary>
        public string MedListCodg { get; set; } = null!;
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Pric { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Cnt { get; set; }
        /// <summary>
        /// 总金额（单条处方的总金额等于单价*数量后四舍五入两位。）
        /// </summary>
        public decimal Umamt { get; set; }
        /// <summary>
        /// 医生编码
        /// </summary>
        public string BilgDrCodg { get; set; } = null!;
        /// <summary>
        /// 科室编码
        /// </summary>
        public string BilgDeptCodg { get; set; } = null!;
        /// <summary>
        /// 是否最小计量单位，空默认为否（0否1是）
        /// </summary>
        public string? MinUnit { get; set; }
        /// <summary>
        /// 全额自费标志，空默认为否（0否1是）
        /// </summary>
        public string? AllSelfFlag { get; set; }
        public string? ResponseRxno { get; set; }
        public string? ResponseFeedetlSn { get; set; }
        public string? ResponseFeeOcurTime { get; set; }
        public string? ResponseMedListCodg { get; set; }
        public decimal? ResponseUmamt { get; set; }
        /// <summary>
        /// 自费金额，丙类费用
        /// </summary>
        public decimal? ResponseOwnpayAmt { get; set; }
        /// <summary>
        /// 超限价金额 ，超上限部分
        /// </summary>
        public decimal? ResponseAlwpayAmt { get; set; }
        /// <summary>
        /// 支付上限
        /// </summary>
        public decimal? ResponsePricUplmtAmt { get; set; }
        /// <summary>
        ///  收费项目等级（1甲类，2乙类，3丙类）
        /// </summary>
        public string? ResponseChrgitmLv { get; set; }
        /// <summary>
        /// 说明信息 
        /// </summary>
        public string? ResponseMemo { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime? UploadTime { get; set; }
        public int? CreateUserId { get; set; }
        public DateTime? CreateOn { get; set; }
        public int? UpdateUserId { get; set; }
        public DateTime? UpdateOn { get; set; }
        /// <summary>
        /// 状态(0未上传1已上传2撤销上传3已结账4上传失败)
        /// </summary>
        public int? Status { get; set; }
        public int? HospitalId { get; set; }
        public long? GlobalId { get; set; }
        public int? ItemId { get; set; }
        /// <summary>
        /// 费用id
        /// </summary>
        public long? Id { get; set; }
        /// <summary>
        /// 原费用id
        /// </summary>
        public long? FeeId { get; set; }
        /// <summary>
        /// 参保地医保区划
        /// </summary>
        public string? InsuplcAdmdvs { get; set; }
        /// <summary>
        /// 报文id
        /// </summary>
        public string? MsgId { get; set; }
        /// <summary>
        /// 失败原因
        /// </summary>
        public string? ErrMsg { get; set; }
        /// <summary>
        /// 结算id
        /// </summary>
        public string? SetlId { get; set; }
    }
}
